class Seiso::ImportMaster
  # Author:: Willie Wheeler
  # Copyright:: Copyright (c) 2014-2016 Expedia, Inc.
  # License:: Apache 2.0
  class Mappers::MachineMapper

    def initialize(resolver)
      @resolver = resolver
    end

    def map(doc_machine, context)
      # TODO Add data center here?
      {
        'name' => doc_machine['name'],
        'os' => doc_machine['os'],
        'osVersion' => doc_machine['osVersion'],
        'platform' => doc_machine['platform'],
        'platformVersion' => doc_machine['platformVersion'],
        'hostname' => doc_machine['hostname'],
        'domain' => doc_machine['domain'],
        'fqdn' => doc_machine['fqdn'],
        'ipAddress' => doc_machine['ipAddress'],
        'ip6Address' => doc_machine['ip6Address']
      }
    end
  end
end
